package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_header_container")
public class HeaderContainerDo extends Model<HeaderContainerDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货柜模板表 id
     */
    @TableField("container_id")
    private Long containerId;

    /**
     * 货柜编号
     */
    @TableField("container_number")
    private String containerNumber;

    /**
     * 头程订单po号拼接 ; 号隔开
     */
    @TableField("po_number_muti")
    private String poNumberMuti;
    /**
     * 起运港
     */
    @TableField("start_port_id")
    private Long startPortId;

    /**
     * 目的港
     */
    @TableField("end_port_id")
    private Long endPortId;
    /**
     * 国内仓库id
     */
    @TableField("start_storage_id")
    private Long startStorageId;

    /**
     * 海外仓库
     */
    @TableField("end_storage_id")
    private Long endStorageId;

    /**
     * 类型 0 拼柜 1整柜
     */
    @TableField("type")
    private Integer type;
    /**
     * 状态
     */
    @TableField("status")
    private Long status;

    /**
     * 裝柜时间
     */
    @TableField("loading_date")
    private Date loadingDate;

    /**
     * 装货地址
     */
    @TableField("loading_address")
    private String loadingAddress;

    /**
     * 开船时间
     */
    @TableField("departure_date")
    private Date departureDate;
    /**
     * 许可时间
     */
    @TableField("licence_date")
    private Date licenceDate;
    /**
     * 入仓时间
     */
    @TableField("arrive_storage_date")
    private Date arriveStorageDate;

    /**
     * 费用状态 0 未完成 1 已完成 2 已导出
     */
    @TableField("ship_broker")
    private String shipBroker;

    /**
     * 船名
     */
    @TableField("ship_name")
    private String shipName;
    /**
     * 提单号
     */
    @TableField("bill_lading_number")
    private String billLadingNumber;

    /**
     * 包裹数量
     */
    @TableField("package_count")
    private Integer packageCount;

    /**
     * 总件数
     */
    @TableField("product_count")
    private Integer productCount;

    /**
     * 总立方
     */
    @TableField("total_volume")
    private Double totalVolume;

    /**
     * 总重量
     */
    @TableField("total_weight")
    private Double totalWeight;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("clear_file_id")
    private Long clearFileId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
